package com.tanjie.blackbean.schedule.support;

import lombok.extern.slf4j.Slf4j;

/**
 * @author: tanjie
 * @date: 2022-04-14
 **/
@Slf4j
public abstract class AbstractTask implements Runnable {

    public AbstractTask() {
        log.info("load task : {}", getTaskName());
        TaskHolder.addTask(getTaskName(), this);
    }

    public abstract String getTaskName();

}
